{% extends "common/layout.html" %} 

{% block body %}
<div class="container">
    <h2 class="mt-5">用户注册</h2>
     <form action="/api/v0/user/register" method="post">
        <div class="form-group">
        <label for="username">用户名</label>
        <input type="text" class="form-control" id="username"  placeholder="请输入用户名" name="username" onblur="checkUserName()">
        <small id="usernameHelp" class="form-text text-success d-none"></small>
        </div>
        <div class="form-group">
        <label for="password">密码</label>
        <input type="password" class="form-control" id="password" placeholder="请输入密码" name="password">
        </div>
        <div class="form-group">
        <label for="email">邮箱</label>
        <input type="email" class="form-control" id="email" placeholder="请输入邮箱" name="email">
        </div>
        <div class="form-group">
        <label for="sex">性别</label>
        <label class="radio-inline">
			    <input type="radio" name="sex" value="male" checked>男
		</label>
        <label class="radio-inline">
            <input type="radio" name="sex" value="female">女
        </label>
        </div>
        <div class="form-group form-check">
        <input type="checkbox" class="form-check-input" id="exampleCheck1">
        <label class="form-check-label" for="exampleCheck1">记住密码</label>
        </div>
        <button type="submit" class="btn btn-primary">提交</button>
        <button type="reset" class="btn btn-success">重置</button>
    </form>
</div>
{% endblock%}
{% block extra %}
{{ super() }}
<script src="/home/js/register.js"></script>
{% endblock %}